﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Nb.LMS.Domains.Accounts
{
    /// <summary>
    /// 账号策略
    /// todo from config
    /// </summary>
    public class AccountPolicy
    {
        public string DefaultPassword
        {
            get { return "123456"; }
        }

        public int MinPasswordLength
        {
            get { return 3; }
        }

        public PasswordFormat PasswordFormat
        {
            get
            {
                return PasswordFormat.Hashed;
            }
        }

        public bool SupportEmail
        {
            get { return true; }
        }

        public bool SupportCustomNo
        {
            get { return true; }
        }

        /// <summary>
        /// 是否支持单点登录
        /// </summary>
        public bool SupportSso
        {
            get { return false; }
        }

    }
}
